package colegios

import java.util.List;

class ReligionService {

    static transactional = true

	def saveObj(Religion obj){
		
		try{
			if(obj.save(flush: true)){

				return true
			}else{
				return false
			}
		}catch(Exception e){
			e.printStackTrace()
		}
	}
	
	def showObj(Integer id){
		def instance = Religion.get(id)
		return instance
	}
	
	def deleteObj(Religion obj){
		
		obj.delete(flush: true)
		
	}
	
}
